(function(a, b) {
    function j(a) {
        return a === undefined ? a = b: typeof a == "string" && h.test(a) ? a = k(a.slice(1), b) : a instanceof n ? a = a[0] || b: a && a.nodeType !== 1 && a.nodeType !== 9 && (a = null),
        a
    }
    function k(a, b) {
        return b.nodeType !== 9 && (b = b.ownerDocument),
        b.getElementById(a)
    }
    function l(a, b) {
        return b.getElementsByTagName(a)
    }
    function m(a, b, c) {
        var d = c.getElementsByClassName(a),
        f = d,
        g = 0,
        h = 0,
        i = d.length,
        j;
        if (b && b !== e) {
            f = [],
            b = b.toUpperCase();
            for (; g < i; ++g) j = d[g],
            j.tagName === b && (f[h++] = j)
        }
        return f
    }
    var c = b.dispatchEvent,
    d = " ",
    e = "*",
    f = String.prototype.trim,
    g = /(^\s*)|(\s*$)/g,
    h = /#([\w\-]+)$/,
    i = /^(?:[^<]*(<[\w\W]+>)[^>]*$|(?:#([\w-]+))?\s*([\w-]+|\*)?\.?([\w-]+)?$)/;
    b.getElementsByClassName || (b.querySelectorAll ? m = function(a, b, c) {
        return c.querySelectorAll((b ? b: "") + "." + a)
    }: m = function(a, b, c) {
        var f = c.getElementsByTagName(b || e),
        g = [],
        h = 0,
        i = 0,
        j = f.length,
        k,
        l;
        a = d + a + d;
        for (; h < j; ++h) k = f[h],
        l = k.className,
        l && (d + l + d).indexOf(a) > -1 && (g[i++] = k);
        return g
    });
    var n = function(a, b) {
        return new n.fn.init(a, b)
    };
    n.fn = n.prototype = {
        constructor: n,
        init: function(b, c) {
            var e, f, g, o, p, q;
            c = j(c);
            if (!b) return this;
            if (b.nodeType || b.window === a) return this.context = this[0] = b,
            this.length = 1,
            this;
            if (typeof b == "string") {
                if (h.test(b)) return f = k(b.slice(1), c),
                f && (this.length = 1, this[0] = f, this.context = c),
                this;
                if (e = i.exec(b)) if (e && !e[1]) {
                    g = e[2],
                    o = e[3],
                    p = e[4];
                    if (c = g ? k(g, c) : c) p ? !g || b.indexOf(d) !== -1 ? q = m(p, o, c) : (f = k(g, c), f && n.hasClass(f, p) && (q = [f])) : o && (q = l(o, c))
                }
            } else if (typeof b == "function") return n.ready(b);
            return n.merge(this, q)
        },
        length: 0,
        html: function(a) {
            return a ? this.each(function() {
                this.innerHTML = a
            }) : this[0] && this[0].innerHTML
        },
        css: function(a, b) {
            return a.replace(/\-(.)/g,
            function(a, b) {
                return b.toUpperCase()
            }),
            this.each(function() {
                this.style[a] = b
            })
        },
        show: function() {
            return this.css("display", "block")
        },
        hide: function() {
            return this.css("display", "none")
        },
        addClass: function(a) {
            return this.each(function() {
                var b = a.split(d),
                c = d + this.className + d,
                e;
                while (e = b.shift()) c.indexOf(d + e + d) === -1 && (c += e + d);
                this.className = n.trim(c)
            })
        },
        removeClass: function(a) {
            return this.each(function() {
                if (a) {
                    var b = a.split(d),
                    c = d + this.className + d,
                    e;
                    while (e = b.shift()) c = c.replace(d + e + d, d);
                    this.className = n.trim(c)
                } else this.className = ""
            })
        },
        hasClass: function(a) {
            if (this[0]) return (d + this[0].className + d).indexOf(d + a + d) != -1 ? !0 : !1
        },
        on: c ?
        function(a, b, c) {
            return this.each(function() {
                var d = {
                    mouseenter: "mouseover",
                    mouseleave: "mouseout"
                },
                e = d[a] ? d[a] : a;
                this.addEventListener(e,
                function(c) {
                    if ("mouseleave|mouseenter".indexOf(a) != -1) {
                        var d = c.relatedTarget;
                        if (this === d || n.contains(this, d)) return
                    }
                    b.call(this, c)
                },
                !!c)
            })
        }: function(a, b) {
            return this.each(function() {
                var c = this;
                this.attachEvent && this.attachEvent("on" + a,
                function(a) {
                    a = n.fixEvent(),
                    b.call(c, a)
                })
            })
        },
        attr: function(a, b) {
            if (arguments.length != 1) return this.each(function() {
                n.setAttr(this, a, b)
            });
            if (this[0]) return n.getAttr(this[0], a, b)
        },
        append: function(a) {
            return this[0] && this[0].appendChild(a),
            this
        },
        val: function(a) {
            return typeof a == "undefined" && this[0] ? this[0].value: this.each(function() {
                this.value = a
            })
        },
        prev: function() {
            if (!this[0]) return this;
            var a = this[0].previousSibling;
            return a && a.nodeType !== 1 && (a = a.previousSibling),
            n(a)
        },
        next: function() {
            if (!this[0]) return this;
            var a = this[0].nextSibling;
            return a && a.nodeType !== 1 && (a = a.nextSibling),
            n(a)
        },
        first: function() {
            return this[0] ? n(this[0].firstChild) : this
        },
        last: function() {
            return this[0] ? n(this[0].lastChild) : this
        },
        offset: function() {
            var a = 0,
            b = 0,
            c = 0,
            d = 0;
            if (this[0]) {
                var e = this[0];
                if (e.getBoundingClientRect) {
                    var f = e.getBoundingClientRect();
                    a = c = n.getScrollLeft(e),
                    b = d = n.getScrollTop(e),
                    a += f.left,
                    c += f.right,
                    b += f.top,
                    d += f.bottom
                } else {
                    var g = e;
                    while (g) a += g.offsetLeft,
                    b += g.offsetTop,
                    g = g.offsetParent;
                    c = a + e.offsetWidth,
                    d = b + e.offsetHeight
                }
            }
            return {
                left: a,
                top: b,
                right: c,
                bottom: d
            }
        }
    },
    n.fn.init.prototype = n.fn,
    n.noop = function() {},
    n.each = n.fn.each = function(a, b) {
        var c = 0,
        d, e;
        typeof a == "function" && (b = a, a = this),
        d = a.length;
        if (typeof d == "number") {
            for (; c < d; c++) if (b.call(a[c], c, a[c], a) === !1) break
        } else for (e in a) if (a.hasOwnProperty(e) && b.call(a[e], e, a[e], a) === !1) break;
        return a
    },
    n.trim = n.fn.trim = f ?
    function(a) {
        return a.trim()
    }: function(a) {
        return a.replace(g, "")
    },
    n.extend = n.fn.extend = function(a, b) {
        var c = [].slice.call(arguments),
        d,
        e = typeof c[c.length - 1] == "boolean" ? c.pop() : !0;
        a = a || {};
        for (var f = 1; b = c[f++];) for (d in b) if (e || !(d in a)) a[d] = b[d];
        return a
    },
    a.JSON ? n.JSON = a.JSON: n.JSON = {
        parse: function(a) {
            return (new Function("return " + a))()
        },
        stringify: function(a) {
            if (a instanceof Object) {
                var b = "";
                if (a.constructor === Array) {
                    for (var c = 0; c < a.length; b += this.stringify(a[c]) + ",", c++);
                    return "[" + b.substr(0, b.length - 1) + "]"
                }
                if (a.toString !== Object.prototype.toString) return '"' + a.toString().replace(/"/g, "\\$&") + '"';
                for (var d in a) b += '"' + d.replace(/"/g, "\\$&") + '":' + this.stringify(a[d]) + ",";
                return "{" + b.substr(0, b.length - 1) + "}"
            }
            return typeof a == "string" ? '"' + a.replace(/"/g, "\\$&") + '"': String(a)
        }
    },
    n.extend(n, {
        merge: function(a, b) {
            if (!a || !b) return;
            var c = b.length,
            d = a.length,
            e = 0;
            if (typeof c == "number") for (; e < c; e++) a[d++] = b[e];
            else while (b[e] !== undefined) a[d++] = b[e++];
            return a.length = d,
            a
        },
        contains: b.defaultView ?
        function(a, b) {
            return ! n(a).length || !n(b).length ? !0 : !!(a.compareDocumentPosition(b) & 16)
        }: function(a, b) {
            return a != b && a.contains(b)
        },
        fixEvent: function(b) {
            if (b) return b;
            b = a.event,
            b.pageX = b.clientX + n.getScrollLeft(b.srcElement),
            b.pageY = b.clientY + n.getScrollTop(b.srcElement),
            b.target = b.srcElement,
            b.stopPropagation = function() {
                this.cancelBubble = !0
            },
            b.preventDefault = function() {
                this.returnValue = !1
            };
            var c = {
                mouseout: b.toElement,
                mouseover: b.fromElement
            } [b.type];
            return c && (b.relatedTarget = c),
            b
        },
        getScrollTop: function(a) {
            var c = a ? a.ownerDocument: b;
            return c.documentElement.scrollTop || c.body.scrollTop
        },
        getScrollLeft: function(a) {
            var c = a ? a.ownerDocument: b;
            return c.documentElement.scrollLeft || c.body.scrollLeft
        },
        setAttr: function(a, b, c) {
            b in a ? a[b] = c: a.setAttribute(b, c)
        },
        getAttr: function(a, b) {
            return b in a && "href" != b ? a[b] : a.getAttribute(b)
        },
        browser: function() {
            var a = navigator.userAgent.toLowerCase(),
            b = {
                msie: /msie/,
                msie6: /msie 6\.0/,
                msie7: /msie 7\.0/,
                msie8: /msie 8\.0/,
                msie9: /msie 9\.0/,
                msie10: /msie 10\.0/,
                firefox: /firefox/,
                opera: /opera/,
                webkit: /webkit/,
                iPad: /ipad/,
                iPhone: /iphone/,
                android: /android/
            };
            for (var c in b) b[c] = b[c].test(a);
            return b
        } (),
        addStyle: function(a) {
            var c = b.head || b.getElementsByTagName("head")[0],
            d = b.createElement("style");
            d.type = "text/css",
            d.styleSheet ? d.styleSheet.cssText = a: d.appendChild(b.createTextNode(a)),
            c.appendChild(d)
        },
        loadJs: function(a, c, d) {
            d = d || {};
            var e = b.head || b.getElementsByTagName("head")[0],
            f = b.createElement("script"),
            g = !1;
            f.src = a,
            d.charset && (f.charset = d.charset),
            "async" in d && (f.async = d.async || ""),
            f.onerror = f.onload = f.onreadystatechange = function() { ! g && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete") && (g = !0, c && c(), f.onerror = f.onload = f.onreadystatechange = null, e.removeChild(f))
            },
            e.insertBefore(f, e.firstChild)
        },
        loadJsonp: function() {
            var b = new Date * 1;
            return function(c, d, e) {
                e = e || {};
                var f = "BiuJsonp" + b++,
                g = e.cb || "callback";
                e.callbackName && (f = e.callbackName),
                a[f] = function(b) {
                    d && d(b),
                    a[f] = null
                },
                c += (/\?/.test(c) ? "&": "?") + g + "=" + f,
                n.loadJs(c, null, e)
            }
        } (),
        isReady: !1,
        ready: function() {
            var a = [],
            b = function(c) {
                return c && c.call && a.push(c),
                b
            };
            return b.fire = function(c) {
                a = b.reuse ? a.concat() : a;
                while (c = a.shift()) c();
                return a.length ? b: b.complete()
            },
            b.complete = n.noop,
            b
        } (),
        fireReady: function() {
            if (n.isReady) return;
            n.isReady = !0,
            n.ready.fire(),
            n.fireReady = n.noop
        }
    });
    if (b.readyState === "complete") n.fireReady();
    else if (b.addEventListener) b.addEventListener("DOMContentLoaded",
    function() {
        b.removeEventListener("DOMContentLoaded", arguments.callee, !1),
        n.fireReady()
    },
    !1);
    else if (b.attachEvent) {
        b.attachEvent("onreadystatechange",
        function() {
            b.readyState === "complete" && (b.detachEvent("onreadystatechange", arguments.callee), n.fireReady())
        });
        var o = !1;
        try {
            o = a.frameElement == null && b.documentElement
        } catch(p) {}
        o && o.doScroll &&
        function q() {
            if (!n.isReady) {
                try {
                    o.doScroll("left")
                } catch(a) {
                    return setTimeout(q, 50)
                }
                n.fireReady()
            }
        } ()
    }
    a.Biu = n
})(window, document),
function(a) {
    a.addCart = function(b, c, d) {
        var e = function() {
            var b = a(".may-like")[0],
            c = a(".like-title")[0],
            d = a(".like-goods")[0],
            e = a(".loading")[0],
            f = a(".no-recommend")[0];
            c ? b.removeChild(c) : "",
            d ? b.removeChild(d) : "",
            e ? b.removeChild(e) : "",
            f ? b.removeChild(f) : "",
            a(".may-like").html('<em class="loading"></em>'),
            a(".goods-amount").html(""),
            a("#side-cart").removeClass("active"),
            a.needIEHack || a(".side-other").addClass("show-other").removeClass("slide-in").addClass("slide-out"),
            a.out_in_work = !0,
            a.eventInBiu.trigger("addCartClose", "The window of addCart has closed"),
            a(".add-cart-success").hide(),
            a(".white-triangle").hide()
        };
        e(),
        a(".add-cart-success").show(),
        a(".white-triangle").show();
        var f = a.DOMAIN.order + "/biu/cartNum";
        a.loadJsonp(f,
        function(b) { + b.cartNum > -1 && b.cartNum !== undefined && b.cartNum != null && (b.cartNum < 100 ? (a("#side-cart .red-cart").html("<span>" + b.cartNum + "</span>"), a("#side-cart .white-cart").html("<span>" + b.cartNum + "</span>")) : (a("#side-cart .red-cart").html('<span class="gt99">99+</span>'), a("#side-cart .white-cart").html('<span class="gt99">99+</span>')))
        }),
        a(".goods-amount").html(b || 0),
        a("#side-cart").addClass("active"),
        a.needIEHack || a(".side-other").removeClass("show-other").removeClass("slide-out").addClass("slide-in"),
        a.out_in_work = !1;
        var g = 0,
        h = function() {
            a(".change-like").on("click",
            function() {
                var b = a(".may-like")[0],
                e = a(".like-title")[0],
                f = a(".like-goods")[0];
                b.removeChild(e),
                b.removeChild(f),
                a(".may-like").html('<em class="loading"></em>');
                var h = a.DOMAIN.webapi + "/recommend/recommend_shopping_cart_new?twitter_id=" + c + "&shop_id=" + d + "&limit=4&page=" + g+++"&__callback=Biu.callback_may_like";
                a.loadJsonp(h)
            }),
            a(".close-x").on("click", e)
        },
        i = a.DOMAIN.webapi + "/recommend/recommend_shopping_cart_new?twitter_id=" + c + "&shop_id=" + d + "&limit=4&page=" + g+++"&__callback=Biu.callback_may_like";
        a.callback_may_like = function(b) {
            var c = a(".may-like")[0],
            d = a(".loading")[0];
            c.removeChild(d);
            if (b && b.length) {
                var e = '<div class="like-goods">',
                f = '<div class="like-title"><span>购买该商品的用户还买了：</span><a class="change-like" href="javascript:;">换一批</a></div>';
                a.each(b,
                function(c, d) {
                    var f = '<div class="single-goods <%last%>"><a class="goods-img" href="<%goodsUrl%>"><img src="<%imgUrl%>"></a><span class="goods-price">¥<%cost%></span><a class="goods-title" href="<%goodsUrl%>"><span><%goodsTitle%></span></a></div>';
                    c == b.length - 1 ? f = f.replace("<%last%>", "last") : f = f.replace("<%last%>", ""),
                    f = f.replace(/<%goodsUrl%>/g, a.DOMAIN.www + d.link_url + "&pstrc=shopcart_pos_" + (c + 1)).replace("<%imgUrl%>", d.image).replace("<%cost%>", d.price || d.original_price).replace("<%goodsTitle%>", d.goods_title),
                    e += f
                }),
                e += "</div>",
                a(".may-like").html(f + e)
            } else a(".may-like").html('<p class="no-recommend">没有可以推荐的商品了哦！</p>');
            h()
        },
        a.loadJsonp(i)
    }
} (window.Biu),
function(a) {
    var b, c = "//sense.meilishuo.com/cr/pc_element/?action=click&location=",
    d = ["newlab.meilishuo.com", "order.newlab.meilishuo.com", "accountlab.meilishuo.com"];
    d.join(",").indexOf(location.host) > -1 && (c = "//senselab.meilishuo.com/cr/pc_element/?action=click&location="),
    a.needIEHack = !1;
    for (var e = 5; e < 10; e++) {
        var f = document.createElement("b");
        f.innerHTML = "<!--[if IE " + e + "]><i></i><![endif]-->";
        if (f.getElementsByTagName("i").length === 1) {
            a.needIEHack = !0;
            break
        }
    }
    var g = function(c) {
        c.css && a.addStyle(c.css),
        c.html && a(b.container).html(c.html);
        var d = window.innerHeight;
        typeof d != "number" && (document.compatMode == "number" ? d = document.documentElement.clientHeight: d = document.body.clientHeight);
        var e = d - 60;
        e < 740 ? e += "px": e = "740px",
        a(".hc-wrapper").css("height", e),
        a(".hb-wrapper").css("height", e)
    },
    h = function() {
        a(window).on("scroll",
        function() {
            a.getScrollTop() > 0 ? a("#go2top").css("display", "block") : a("#go2top").css("display", "none")
        }),
        a("#go2top").on("click",
        function() {
            window.scrollTo(0, 0)
        });
        var b = a(".jl-active-items"),
        d = a(".hc-wrapper"),
        e = a(".hb-wrapper"),
        f = a(".the-user-ids").html(),
        g = (new Date).getTime();
        Date.parse("2016/6/1 00:00:00") <= g && g < Date.parse("2016/6/19 00:00:00") ? b.show() : b.hide();
        var h = "抢先加车";
        Date.parse("2016/6/12 00:00:00") <= g && g < Date.parse("2016/6/16 00:00:00") ? h = "抢先加车": Date.parse("2016/6/16 00:00:00") <= g && g < Date.parse("2016/6/19 00:00:00") && (h = "立即购买");
        if (e && e.length == 1) {
            var i = "http://promotionnew.meilishuo.com/jsonp/getRedPacket/1?campaignId=700000276656";
            a.loadJsonp(i,
            function(b) {
                if (b && b.success) if (b.data.num && b.data.num > 0) {
                    var c = (b.data.num / 100).toFixed(2),
                    d = ' <p class="ns">女神！</p><p class="without-hb">您的红包金额为</p><p class="je">' + c + "元</p>" + '<p><a class="hbmx">登陆app查看红包明细</a></p>' + '<a class="rule" href="http://616.meilishuo.com/game/rule" target="_blank">红包使用规则<img src="http://i.meilishuo.net/css/images/active-hc/active-hb-arrow.png"></a>';
                    a(".hb-without-hb").html(d)
                } else {
                    var e = '<p class="ns">女神！</p><p class="without-hb">你还没有红包哦</p><p class="lhb">快去主会场领取红包吧</p><a class="go-to-zhc" href="http://616.meilishuo.com/index" target="_blank">去主会场<img src="http://i.meilishuo.net/css/images/active-hc/active-hb-arrow.png"></a><a class="rule" href="http://616.meilishuo.com/game/rule" target="_blank">红包使用规则<img src="http://i.meilishuo.net/css/images/active-hc/active-hb-arrow.png"></a>';
                    a(".hb-without-hb").html(e)
                }
            });
            var j = "http://mce.mogujie.com/jsonp/get/3?pid=7061&uid=" + f,
            k = '<img class="isLoading" src="http://i.meilishuo.net/css/images/active-hc/active-loading.gif">';
            a(".hb-guess-like-list").html(k),
            a.loadJsonp(j,
            function(b) {
                var c = b.data.list || "";
                if (c && c.length > 0 && c != "") {
                    var d = "";
                    a.each(c,
                    function(a, b) {
                        if (a >= 3) return;
                        var c = b.item_url,
                        e = b.image,
                        f = b.discountPrice || b.promotionPrice || b.price,
                        g = b.title,
                        i = b.acm,
                        j = Math.floor(b.hbPrice) || 0,
                        k = ' <div class="hb-guess-like-detail"><a class="goods" href=' + c + "?acm=" + i + ' target="_blank"><img class="goods" src=' + e + "></a>" + '<div class="goods-detail">' + '<p class="goods-title"><a href=' + c + "?acm=" + i + '  target="_blank"  title=' + g + ">" + g + "</a></p>" + '<p class="goods-price">￥' + f + "</p>" + '<p class="goods-discount">红包最多抵' + j + "元</p>" + '<a class="add-cart"  target="_blank" href=' + c + "?acm=" + i + ">" + h + "</a>" + "</div>" + "</div>";
                        d += k
                    }),
                    a(".hb-guess-like-list").html(d)
                } else {
                    var e = '<p class="with-out-data">暂无数据</p>';
                    a(".hb-guess-like-list").html(e)
                }
            })
        }
        b.on("click",
        function(a) {
            var b = a.target.className;
            a && a.stopPropagation ? a.stopPropagation() : a.cancelBubble = !0,
            b == "jl-active-hc" && (d.hasClass("hc-wrapper-hide") ? (d.removeClass("hc-wrapper-hide"), e.addClass("hb-wrapper-hide")) : d.addClass("hc-wrapper-hide")),
            b == "jl-active-hb" && (e.hasClass("hb-wrapper-hide") ? (e.removeClass("hb-wrapper-hide"), d.addClass("hc-wrapper-hide")) : e.addClass("hb-wrapper-hide"))
        }),
        e.on("click",
        function(a) {
            a && a.stopPropagation ? a.stopPropagation() : window.event.cancelBubble = !0
        }),
        d.on("click",
        function(a) {
            a && a.stopPropagation ? a.stopPropagation() : window.event.cancelBubble = !0
        }),
        document.onclick = function() {
            d.addClass("hc-wrapper-hide"),
            e.addClass("hb-wrapper-hide")
        },
        a.out_in_work = !0,
        a(".relative-div").on("mouseenter",
        function() {
            a.out_in_work && !a.needIEHack && a(".side-other").removeClass("show-other").removeClass("slide-out").addClass("slide-in")
        }),
        a(".relative-div").on("mouseleave",
        function() {
            a.out_in_work && !a.needIEHack && a(".side-other").addClass("show-other").removeClass("slide-in").addClass("slide-out")
        });
        var l = {
            "side-cart": "shop_cart",
            "openIM-shop": "customer",
            "side-like": "like",
            "side-coupon": "coupon",
            "side-feedback": "search",
            openIM: "customer_service"
        };
        a(".log-send").on("click",
        function() {
            var b = c,
            d = a(this)[0].id,
            e = a(this)[0].className;
            if (l[d]) b += l[d];
            else if (e.indexOf("openIM-shop") > -1) b += l["openIM-shop"];
            else {
                if (! (e.indexOf("openIM") > -1)) return;
                b += l.openIM
            }
            var f = new Image;
            f.src = b
        })
    },
    i = function() {
        a.eventInBiu = {
            events: {},
            on: function(a, b) {
                this.events[a] = b
            },
            trigger: function(a, b) {
                this.events[a] && this.events[a](null, b)
            }
        };
        var c;
        window.location.protocol == "http:" ? c = a.DOMAIN.order: c = a.DOMAIN.zhifu.indexOf("https://") > -1 ? a.DOMAIN.zhifu: a.DOMAIN.zhifu.replace("http://", "https://");
        var d = c + "/biu/side?container=" + encodeURIComponent(b.container) + "&";
        for (var e in b) {
            var f = b[e].type;
            f != undefined && (d += e + "=" + f + "&")
        }
        b.serviceIM ? d += "serviceIM=" + b.serviceIM: d = d.slice(0, -1),
        a.loadJsonp(d,
        function(b) {
            g(b),
            a.needIEHack && a(".side-other").addClass("always-show"),
            h(),
            a.eventInBiu.trigger("sideLoaded", "The side has loaded")
        })
    },
    j = function(b, c, d) {
        if (d == undefined) return {
            type: b
        };
        var e = function(d) {
            var e;
            return a.each(c,
            function(a, b) {
                d == b && (e = b)
            }),
            e != undefined ? e: b
        };
        return Object.prototype.toString.call(d) == "[object Object]" ? (d.type ? d.type = e(d.type) : d.type = b, d) : {
            type: e(d)
        }
    };
    a.init = function(c) {
        b = c;
        if (!b || !typeof b.container == "string" || !a(b.container).length) return ! 1;
        a.DOMAIN = JSON.parse(c.domain);
        var d = {
            im: {
                def: 1,
                legals: [0, 2]
            }
        },
        e = ["im", "addCart", "coupon", "like", "feedback", "go2top", "notCart", "activeHc", "activeHb"];
        a.each(e,
        function(a, c) {
            var e = d[c];
            e ? b[c] = j(e.def, e.legals, b[c]) : b[c] = j(!0, [!1], b[c])
        }),
        b.serviceIM ? b.serviceIM = encodeURIComponent(b.serviceIM) : delete b.serviceIM,
        i()
    }
} (window.Biu);